package com.sundae.utils;

/**
 * Created by superace on 2017/8/5.
 */
public class ResponseUtils {

//    /** 
//     * 发送内容。使用UTF-8编码。 
//     *  
//     * @param response 
//     * @param contentType 
//     * @param text 
//     */
//     public static void render(HttpResponse response , String contenType , String text)
//     {
//         response.setContentType(contenType);
//         response.setCharacterEncoding("utf-8");
//         response.setHeader("Pragma","No-cache");
//         response.setHeader("Cache-Control","no-cache");
//         response.setDateHeader("Expires",0);
//         try {
//             response.getWriter().write(text);
//         } catch (UnsupportedEncodingException e) {
//             e.printStackTrace();
//         }
//     }


}
